using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DiceRoller.GUI {
  class ConfigurableForm : Form{

    private List<TextBox> inputBoxes;
    private List<OutputBox> outputBoxes;

    public ConfigurableForm() {
      InitializeComponent();
    }

    private void InitializeComponent() {
      //read in config file
      string configuration = "";
      string size = getSize(configuration);

      setDimensions(size);
    }

    private void setDimensions(string size) {
      switch(size){
        case "small" :
          this.Size = SmallSize;
          break;
        case "medium":
          this.Size = MediumSize;
          break;
        case "large":
          this.Size = LargeSize;
          break;
      }
    }

    private string getSize(string configuration) {
      return "medium";
    }

    protected Size smallSize;
    protected Size SmallSize {
      get {
        if(smallSize.Equals(null)) {
          smallSize = new Size(300,400);
        }
        return smallSize;
      }
    }

    protected Size mediumSize;
    protected Size MediumSize {
      get {
        if(mediumSize.Equals(null)) {
          mediumSize = new Size(300, 400);
        }
        return mediumSize;
      }
    }

    protected Size largeSize;
    protected Size LargeSize {
      get {
        if(LargeSize.Equals(null)) {
          largeSize = new Size(300, 400);
        }
        return largeSize;
      }
    }
  }
}
